
#include "Dbgout.h"

#include<stdarg.h>
#include <stdio.h>

auto __stdcall DPrint(char *msg)->void
{
	if (msg == 0) return;

	char newmsg[4096 * 4] = { 0 };

	sprintf_s(newmsg, _PRINTHEAD, msg);

	KdPrint((newmsg));

}

auto __stdcall DbgOut(char *fmt, ...)->void
{
	va_list	ap;
	char	sz[4096*4];

	va_start(ap, fmt);
	vsprintf(sz, fmt, ap);
	DPrint(sz);
	va_end(ap);
}
